﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习_数组反转
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int[] arr = {11, 22, 33, 44, 55, 66};

            int[] arrInverse = InverseArray(arr);

            foreach(int v in arrInverse)
            {
                Console.WriteLine(v);
            }
            Console.Read();
        }

        public static int[] InverseArray(int[]arr)
        {
            int[] arrInverse = new int[arr.Length];

            for (int i = 0; i < arr.Length; i++)
            {
                arrInverse[arr.Length - 1 - i] = arr[i];
            }

            return arrInverse;
        }
    }
}
